// get the currently selected text
var selectedText;
try {
	selectedText = ((window.getSelection && window.getSelection())
			|| (document.getSelection && document.getSelection()) || (document.selection
			&& document.selection.createRange && document.selection
			.createRange().text));
} catch (e) { // access denied on https sites
	selectedText = null;
}



// encode text
var tsk_title;
if(selectedText != null)
	tsk_title = encodeURIComponent(selectedText);
else
	tsk_title = document.title;

// to load a new unlimited script from your server
/*
javascript:(function(){
	  _my_script=document.createElement('SCRIPT');
	  _my_script.type='text/javascript';
	  _my_script.src='http://mysite.com/script.js?';
	  document.getElementsByTagName('head')[0].appendChild(_my_script);
	})();
*/